﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001177 RID: 4471
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetMissionEventProgressScRsp : IMessage<SetMissionEventProgressScRsp>, IMessage, IEquatable<SetMissionEventProgressScRsp>, IDeepCloneable<SetMissionEventProgressScRsp>, IBufferMessage
	{
		// Token: 0x1700388F RID: 14479
		// (get) Token: 0x0600C818 RID: 51224 RVA: 0x0021B678 File Offset: 0x00219878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetMissionEventProgressScRsp> Parser
		{
			get
			{
				return SetMissionEventProgressScRsp._parser;
			}
		}

		// Token: 0x17003890 RID: 14480
		// (get) Token: 0x0600C819 RID: 51225 RVA: 0x0021B67F File Offset: 0x0021987F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetMissionEventProgressScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003891 RID: 14481
		// (get) Token: 0x0600C81A RID: 51226 RVA: 0x0021B691 File Offset: 0x00219891
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetMissionEventProgressScRsp.Descriptor;
			}
		}

		// Token: 0x0600C81B RID: 51227 RVA: 0x0021B698 File Offset: 0x00219898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetMissionEventProgressScRsp()
		{
		}

		// Token: 0x0600C81C RID: 51228 RVA: 0x0021B6A0 File Offset: 0x002198A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetMissionEventProgressScRsp(SetMissionEventProgressScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C81D RID: 51229 RVA: 0x0021B6C5 File Offset: 0x002198C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetMissionEventProgressScRsp Clone()
		{
			return new SetMissionEventProgressScRsp(this);
		}

		// Token: 0x17003892 RID: 14482
		// (get) Token: 0x0600C81E RID: 51230 RVA: 0x0021B6CD File Offset: 0x002198CD
		// (set) Token: 0x0600C81F RID: 51231 RVA: 0x0021B6D5 File Offset: 0x002198D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600C820 RID: 51232 RVA: 0x0021B6DE File Offset: 0x002198DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetMissionEventProgressScRsp);
		}

		// Token: 0x0600C821 RID: 51233 RVA: 0x0021B6EC File Offset: 0x002198EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetMissionEventProgressScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C822 RID: 51234 RVA: 0x0021B71C File Offset: 0x0021991C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C823 RID: 51235 RVA: 0x0021B75B File Offset: 0x0021995B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C824 RID: 51236 RVA: 0x0021B763 File Offset: 0x00219963
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C825 RID: 51237 RVA: 0x0021B76C File Offset: 0x0021996C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C826 RID: 51238 RVA: 0x0021B7A0 File Offset: 0x002199A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C827 RID: 51239 RVA: 0x0021B7DE File Offset: 0x002199DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetMissionEventProgressScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C828 RID: 51240 RVA: 0x0021B80F File Offset: 0x00219A0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C829 RID: 51241 RVA: 0x0021B818 File Offset: 0x00219A18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400505B RID: 20571
		private static readonly MessageParser<SetMissionEventProgressScRsp> _parser = new MessageParser<SetMissionEventProgressScRsp>(() => new SetMissionEventProgressScRsp());

		// Token: 0x0400505C RID: 20572
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400505D RID: 20573
		public const int RetcodeFieldNumber = 3;

		// Token: 0x0400505E RID: 20574
		private uint retcode_;
	}
}
